<template>
  <div class="sidebar-container">
    <div class="logo">
      <i class="icon-music"></i>
      <span>酷狗音乐</span>
    </div>
    <el-menu
      :default-active="$route.path"
      class="sidebar-menu"
      router
    >
      <el-menu-item index="/">
        <el-icon><House /></el-icon>
        <span>发现音乐</span>
      </el-menu-item>
      <el-menu-item index="/search">
        <el-icon><Search /></el-icon>
        <span>搜索</span>
      </el-menu-item>
      <el-menu-item index="/playlist">
        <el-icon><List /></el-icon>
        <span>我的歌单</span>
      </el-menu-item>
      <el-menu-item index="/local">
        <el-icon><Folder /></el-icon>
        <span>本地音乐</span>
      </el-menu-item>
      <el-menu-item index="/settings">
        <el-icon><Setting /></el-icon>
        <span>设置</span>
      </el-menu-item>
    </el-menu>
  </div>
</template>

<script setup lang="ts">
// 侧边栏组件
</script>

<style scoped>
.sidebar-container {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.logo {
  display: flex;
  align-items: center;
  padding: 20px;
  font-size: 18px;
  font-weight: bold;
  color: #409eff;
}

.logo i {
  margin-right: 10px;
  font-size: 24px;
}

.sidebar-menu {
  border-right: none;
  flex: 1;
}
</style>
